package com.lagou.mapper;

import com.lagou.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    public List<User> FindUserAll();

    public User FindUserById(int id);

    public void SaveUser(User user);

    public void SaveUser2(User user);

//    public User findUserByIdAndName(@Param("id") int id, @Param("username") String username);

    public User findUserByIdAndName(User user);

    public List<User> findAllResultMap();

    public List<User> findByUserName(@Param("username") String username);

    public List<User> findAllWithOrder();

    public List<User> findAllWithRole();

}
